using UnityEngine;
using System.Collections;

public class CommanderInterface : MonoBehaviour {

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
	}
	
	void OnGUI() {
		// Время
		var hr = System.DateTime.Now.Hour;
		var min = System.DateTime.Now.Minute;
		var time = "";
		if (hr < 10) time = "0" + hr + ":";
		else time = hr + ":";
		if (min < 10) time = time + "0" + min;
		else time = time + min;
		GUI.Box(new Rect(10, 10, 40, 20), time);
		
		// Координаты мыши
		GUI.Label(new Rect(100, 10, 50, 20), Input.GetAxis("Mouse X") + ":" + Input.GetAxis("Mouse Y"));
	}
}
